<?php




/**
 * @author Windows 8 Pro User
 * @version 1.0
 * @created 02-dez-2013 23:36:28
 */
class AppController extends Controller
{

	/**
	 * Set the default controller's helpers
	 */
	public $helpers = array('Html', 'Form');
	/**
	 * Set the default components
	 */
	public $components = array(
	        'Session',
	        'Auth' => array(
	            'loginRedirect' => array('controller' => 'users', 'action' => 'index'),
	            'logoutRedirect' => array('controller' => 'pages', 'action' => 'display', 'home')
	        )
	    );

	public function beforeFilter()
	{
		// Set the allowed functions
		$this->Auth->allow('index', 'view');
	}

}
?>